import { post, put, get } from '@/utils/hettpUtils/httpRequest'

export const adminUserColumns = [
    {
        title: "工号",
        dataIndex: "uuid",
    },
    {
        title: "账号",
        dataIndex: "account",
    },
    {
        title: "昵称",
        dataIndex: "nickName",
    },
    {
        title: "手机电话",
        dataIndex: "mobilePhone",
    },
    {
        align: 'center',
        title: "投放开关",
        dataIndex: "isPush",
        scopedSlots: { customRender: "isPush" },
    },
    {
        align: 'center',
        title: "所属角色",
        dataIndex: "roleName",
    },
    {
        align: 'center',
        title: "所属部门",
        dataIndex: "organizeName",
    },
    {
        align: 'center',
        title: "所属职位",
        dataIndex: "postationName",
    },
    {
        align: 'center',
        title: "创建时间",
        dataIndex: "createTime",
        sorter: true,
    },
    {
        align: 'center',
        title: "状态",
        dataIndex: "status",
        scopedSlots: { customRender: "status" },
    },
    {
        align: 'center',
        title: "操作",
        dataIndex: "action",
        scopedSlots: { customRender: "action" },
    },
];


export const adminUserColumns2 = [
    {
        title: "工号",
        dataIndex: "uuid",
    },
    {
        title: "账号",
        dataIndex: "account",
    },
    {
        title: "昵称",
        dataIndex: "nickName",
    },
    {
        title: "手机电话",
        dataIndex: "mobilePhone",
    }
];

export const addAdminUser = (parameter) => post('api/sysAdminUser/addAdminUser', parameter)
export const deleteAdminUser = (parameter) => post('api/sysAdminUser/deleteAdminUser', parameter)
export const updateAdminUser = (parameter) => put('api/sysAdminUser/updateAdminUser', parameter)
export const queryAdminUser = (parameter) => get('api/sysAdminUser/queryAdminUser', parameter)
export const getAdminUser = (parameter) => get('api/sysAdminUser/getAdminUser', parameter)
export const queryAdminUserTreeSelect = (parameter) => get('api/sysAdminUser/queryAdminUserTreeSelect', parameter)
export const queryAdminUserSelect = (parameter) => post('api/sysAdminUser/queryAdminUserSelect', parameter)
export const updatePwd = (parameter) => put('api/sysAdminUser/updatePwd', parameter)
export const resetPwd = (parameter) => put('api/sysAdminUser/resetPwd', parameter)
export const updateStatus = (parameter) => put('api/sysAdminUser/updateStatus', parameter)



